home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / tnt / tnt.exe / {app} / plugins / IE Window.ttp < prev    next >
INI File  |  2005-03-15  |  1KB  |  61 lines

  1. [SETTINGS]
  2. Category=Software Tweaks::Internet Explorer::Toolbar Picture & Title
  3. Caption=Toolbar Picture && Title
  4. #=1)This tweak allows you to select a bitmap image to display as the background for the Internet Explorer toolbar.
  5. #=\n2)You can change the title of the Internet Explorer window here.
  6. #=\n\nClear the field to restore its default value.
  7.  
  8. version=1.0
  9. Author=
  10.  
  11.  
  12. [INTERFACE]
  13. TYPE=multi
  14. type0=edit
  15. style0=1
  16. Text0=Toolbar Picture
  17. FileFilter0=Bitmaps (*.bmp)|*.bmp||
  18. type1=edit
  19. style1=0
  20. Text1=Window Title
  21.  
  22. [EXPORT]
  23. val0="HKCU\Software\Microsoft\Internet Explorer\Toolbar\BackBitmapIE5"
  24. val1= "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Window Title"
  25.  
  26.  
  27. [SCRIPT]
  28. dim strkey1,strKey2
  29. strkey1="HKCU\Software\Microsoft\Internet Explorer\Toolbar\BackBitmapIE5"
  30. strKey2= "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Window Title"
  31.  
  32. SUB OnInit()
  33.   SetItemText 0,RegReadValue(strkey1)
  34.   SetItemText 1,RegReadValue(strkey2)
  35. END SUB
  36.  
  37. SUB OnApply(x,y)
  38.  
  39.  dim s
  40.  s=GetItemText(0) 
  41.  
  42.  if len(s)=0 then ' default
  43.        RegDeleteVal strkey1
  44.   else
  45.     RegWriteValue strkey1,s,1
  46.  end if
  47.  
  48. s=GetItemText(1) 
  49.  
  50.  if len(s)=0 then ' default
  51.        RegDeleteVal strkey2
  52.   else
  53.     RegWriteValue strkey2,s,1
  54.  end if
  55.  
  56.  
  57.  
  58.  NotifySettingChange 0
  59.  
  60. END SUB
  61.